package com.cloud.admin.config;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * @Name Config
 * @Description mysql备份
 * @Author douhaichao
 * @Date 2019/3/14 14:45
 * @Version 1.0
 **/
@AllArgsConstructor
@Data
@NoArgsConstructor
@Component
public class MySQLBackupConfig {

    //mysql备份
    @Value("${backup.osname:'linux'}")
    private String osName;

    @Value("${backup.mysqlBackupPath:''}")
    private String mysqlBackupPath;

    //mysql数据库连接url
    @Value("${spring.datasource.dynamic.datasource.master.url:''}")
    private String datasourceUrl;

    //mysql数据库连接用户名
    @Value("${spring.datasource.dynamic.datasource.master.username:''}")
    private String datasourceUsername;

    //mysql数据库连接密码
    @Value("${spring.datasource.dynamic.datasource.master.password:''}")
    private String datasourcePassword;
}
